package com.xueyi.workflow.service;

import com.xueyi.workflow.domain.query.RoleProcessPermQuery;
import com.xueyi.workflow.domain.dto.RoleProcessPermDto;
import com.xueyi.common.web.entity.service.IBaseService;
import com.xueyi.common.core.web.result.AjaxResult;

import java.util.List;

public interface RoleProcessPermService extends IBaseService<RoleProcessPermQuery, RoleProcessPermDto> {

    /**
     * 角色批量分配流程权限
     */
    AjaxResult batchAssign(Long roleId, List<String> processKeys);

    /**
     * 角色批量解绑流程权限
     */
    AjaxResult batchUnbind(Long roleId, List<String> processKeys);

    /**
     * 校验角色对流程的权限
     */
    boolean checkPerm(Long roleId, String processKey);
} 